package demo.day03

const val INFO = "good good study day day up"

// Kotlin 字符串截取  substring
fun main() {
    println(INFO.substring(0, INFO.length - 1))
    val indexOf = INFO.indexOf('p')
    // kotlin 基本上使用此方法
    println(INFO.substring(0 until indexOf))
}


